# -*- coding: utf-8 -*-
# @Time    : 2021/8/22 上午12:35
# @Author  : lilong
# @desc    :

import os
import logging

import rasa.run

from rasa.utils.common import set_log_level

set_log_level(logging.DEBUG)


# nlu、core模型路径
model = "../bot_playground/bot_tiny/models/nlu_core"

endpoints = "endpoints.yml"
credentials = "credentials.yml"
cors = "*"
port = 5005
connector = 'socketio'
# log_file = "log.txt"

rasa.run(model=model,
         endpoints=endpoints,
         connector=connector,
         credentials=credentials,
         cors=cors,
         port=port,
         # log_file=log_file
         )
